<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      div {
        position: relative;
        text-align: center;
        margin: 0 auto;
        width: 1190px;
      }
      #close {
        position: absolute;
        right: 40px;
        top: 0;
      }
    </style>
  </head>
  <body>
    <div>
      <img src="./luzhou.jpg" alt="" />
      <img src="./close.jpg" alt="" id="close" />
    </div>
    <script>
      var div = document.querySelector('div')
      var close = document.getElementById('close')
      close.onclick = function () {
        div.style.display = 'none'
      }
    </script>
  </body>
</html>
